package learn.e.a;

public class NewAthlete {
    public void diveAthlete(Dive dive){
        dive.dive();
    }
    public void shootAthlete(Shoot shoot){
        shoot.shoot();
    }
    public void sprintAthlete(Sprint sprint){
        sprint.sprint();
    }
    public void almightyAthlet(Almighty almighty){
        almighty.dive();
        almighty.shoot();
        almighty.sprint();
    }

    public static void main(String[] args) {
        NewAthlete newAthlete = new NewAthlete();
        System.out.println("1");
        newAthlete.diveAthlete(new NewDive());
        System.out.println("2");
        newAthlete.shootAthlete(new NewShoot());
        System.out.println("3");
        newAthlete.sprintAthlete(new NewSprint());
        System.out.println("4");
        newAthlete.almightyAthlet(new NewAlmighty());
    }
}
